﻿using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Bill
{
    public class TB_AdjustPrice : BaseXPLiteObjectClass
    {
        public TB_AdjustPrice(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        string fAdjustPriceID;
        [Key, Persistent]
        public string AdjustPriceID
        {
            get { return fAdjustPriceID; }
            set { SetPropertyValue<string>("AdjustPriceID", ref fAdjustPriceID, value); }
        }
        string fBillCode;
        public string BillCode
        {
            get { return fBillCode; }
            set { SetPropertyValue<string>("BillCode", ref fBillCode, value); }
        }
        int fStatusID;
        public int StatusID
        {
            get { return fStatusID; }
            set { SetPropertyValue<int>("StatusID", ref fStatusID, value); }
        }
        B_Store fStoreID;
        public B_Store StoreID
        {
            get { return fStoreID; }
            set { SetPropertyValue<B_Store>("StoreID", ref fStoreID, value); }
        }
        string fTitle;
        public string Title
        {
            get { return fTitle; }
            set { SetPropertyValue<string>("Title", ref fTitle, value); }
        }
        string fReason;
        public string Reason
        {
            get { return fReason; }
            set { SetPropertyValue<string>("Reason", ref fReason, value); }
        }
        string fAuditUser;
        public string AuditUser
        {
            get { return fAuditUser; }
            set { SetPropertyValue<string>("AuditUser", ref fAuditUser, value); }
        }
        DateTime fAuditDate;
        public DateTime AuditDate
        {
            get { return fAuditDate; }
            set { SetPropertyValue<DateTime>("AuditDate", ref fAuditDate, value); }
        }
        [Association("AdjustPrice-AdjustPriceDetail"), Aggregated]
        public XPCollection<TB_AdjustPriceDetail> AdjustPriceDetails
        {
            get { return GetCollection<TB_AdjustPriceDetail>("AdjustPriceDetails"); }
        }
    }
}
